import http from '../../../util/http.js';

 //====================基础数据模块内部接口

//内部接口控制器对应的URL前缀
const  BasicsPrefix = "/internal/basics";
//计费规则组数据字典
export function FeeRuleGroupDict() {
    let url = `${BasicsPrefix}/fee/rule/group/dict`;
    return new Promise((resolve, reject) => {
        http.get(url).then(response => {
            resolve(response.data.result)
        });
    });
}




export function AreaDict() {
    let url = `${BasicsPrefix}/area/dict`;
    return new Promise((resolve, reject) => {
        http.get(url).then(response => {
            resolve(response.data.result)
        });
    });
}



export function StreetDict() {
    let url = `${BasicsPrefix}/street/dict`;
    return new Promise((resolve, reject) => {
        http.get(url).then(response => {
            resolve(response.data.result)
        });
    });
}


//获取区域-街道属性结构字典
export function AreaStreetTreeDict() {
    let url = `${BasicsPrefix}/area/street/tree/dict`;
    return new Promise((resolve, reject) => {
        http.get(url).then(response => {
            resolve(response.data.result)
        });
    });
}





//场地字典
export function PlaceDict() {
    let url = `${BasicsPrefix}/place/dict`;
    return new Promise((resolve, reject) => {
        http.get(url).then(response => {
            resolve(response.data.result)
        });
    });
}



